export default {//存对局记录的全局变量
    state: {
        is_record: false,//因为录像界面复用了游戏界面很多组件，所以要区分二者，此变量标志是否是录像
        a_steps: "",//记录步数和败者
        b_steps: "",
        record_loser: "",//加前缀，因为不能和pk.js中的loser重名
    },
    getters: {
    },
    mutations: {
        updateIsRecord(state, is_record) {
            state.is_record = is_record;
        },
        updateSteps(state, data) {
            state.a_steps = data.a_steps;
            state.b_steps = data.b_steps;
        },
        updateRecordLoser(state, loser) {
            state.record_loser = loser;
        }
    },
    actions: {
    },
    modules: {
    }
}
